<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
        <link rel="stylesheet" href="css/style.css"/>
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="assets/js/ace-extra.min.js"></script>
		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>        
        <script src="assets/layer/layer.js" type="text/javascript"></script>
<title>注册</title>
</head>

<body >
    <div class="loginbody">
<div class="login-container">
	<div class="center">

	
	<h4 class="header blue lighter bigger">
			<i class="icon-coffee green"></i>
				填写企业用户信息
			</h4>
		<ul>
		  <label>企业名称：</label><input  class="width-50" name="name" type="text"  id="username"/></br>
		   <label>企业法人：</label><input class="width-50" name="name" type="text"id="name"/><br>
		  <label>登录密码：</label><input  class="width-50"name="password" type="password"id="userpwd"/><br>
		  <label>确认密码：</label><input  class="width-50"name="password" type="password"   id="password"/><br>
		  <label>联系方式：</label><input  class="width-50"name="det" type="text"   id="det"/><br>
		  <label>公司地址：</label><input  class="width-50"name="name" type="text"   id="name"/><br>
		  <label>经营范围：</label><input  class="width-50"name="name" pull-center  type="text"   id="name"/><br>
		  
		  </ul>
		<div class="space"></div>
		<div>
		   <td class="tl">
             <span class="E-checked"><input id="MemberRegister1_ctl00_CheckBoxIfAgree" type="checkbox" name="MemberRegister1$ctl00$CheckBoxIfAgree" checked="checked" /></span>同意
              <a href='http://city.nrqiang.com/MemberRegProtocol.html' target="_blank" class="bluea">《用户注册协议》</a>
              <span id="spanIfAgree" visible="false"></span>
            </td>
		</div></br>
		<div class="clearfix">
															
			<button type="button" class="width-65 pull-center btn btn-sm btn-primary"" id="login_btn">
			<i class="icon-key"></i>
				立即注册
			</button>

			</div>

				<div class="space-4"></div>
					</fieldset>
				</form>
			</div><!-- /widget-main -->

					<div class="toolbar clearfix">
			     </div>
			    </div><!-- /widget-body -->
			  </div><!-- /login-box -->
			 </div><!-- /position-relative -->
			</div>
        </div>
</body>
</html>
<script>
$('#login_btn').on('click', function(){
	     var num=0;
		 var str="";
     $("input[type$='text'],input[type$='password']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('注册成功！',{
               title: '提示框',				
			   icon:1,		
			  });
	          location.href="index.html";
			   layer.close(index);	
		  }		  		     						
		
	});
  $(document).ready(function(){
	 $("input[type='text'],input[type='password']").blur(function(){
        var $el = $(this);
        var $parent = $el.parent();
        $parent.attr('class','frame_style').removeClass(' form_error');
        if($el.val()==''){
            $parent.attr('class','frame_style').addClass(' form_error');
        }
    });
	$("input[type='text'],input[type='password']").focus(function(){		
		var $el = $(this);
        var $parent = $el.parent();
        $parent.attr('class','frame_style').removeClass(' form_errors');
        if($el.val()==''){
            $parent.attr('class','frame_style').addClass(' form_errors');
        } else{
			 $parent.attr('class','frame_style').removeClass(' form_errors');
		}
		});
	  })

</script>